 mq_connectiontest: mq_connectiontest.cc ../mqcomm/proto/mq_msg.pb.cc ../mqcomm/proto/mq_protocol.pb.cc 
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g  -I../mqthird/include
mq_channeltest:mq_channeltest.cc ../mqcomm/proto/mq_msg.pb.cc ../mqcomm/proto/mq_protocol.pb.cc 
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g  -I../mqthird/include
mq_consumertest:mq_consumertest.cc ../mqcomm/proto/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
mq_routetest:mq_routetest.cc ../mqcomm/proto/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
mq_hosttest:mq_hosttest.cc ../mqcomm/proto/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
mq_messagetest:mq_messagetest.cc ../mqcomm/proto/mq_msg.pb.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
mq_bindingtest:mq_bindingtest.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
mq_queuetest:mq_queuetest.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
mq_exchangetest:mq_exchangetest.cc
	g++ -o $@ $^ -std=c++17 -lgtest -lprotobuf -lsqlite3 -lpthread -g
filetest: filetest.cc
	g++ -o $@ $^ -std=c++17 -g
.PHONY:clean
clean:
	rm -f filetest mq_exchangetest mq_queuetest mq_bindingtest \
	mq_messagetest mq_hosttest mq_routetest mq_consumertest mq_channeltest \
	mq_connectiontest